#include "display_driver.h"

uint8_t tft_pins[TFT_PIN_SUM] = {26, 25, 33, 32, 18};

void tft_pin_init() {
  for (int i = 0; i < TFT_PIN_SUM; i++) {
    gpio_reset_pin(tft_pins[i]);
    /* Set the GPIO as a push/pull output */
    gpio_set_direction(tft_pins[i], GPIO_MODE_OUTPUT);
  }
}

void set_pin_high(uint8_t pin) { gpio_set_level(tft_pins[pin], 1); }

void set_pin_low(uint8_t pin) { gpio_set_level(tft_pins[pin], 0); }